package com.truthbean.jeetb.api.jaxrs;

import javax.ws.rs.*;
import javax.ws.rs.core.Application;

/**
 * Created by TruthBean on 2016-10-09 14:43.
 */
@ApplicationPath("/")
@Path("/")
public class ApiApp extends Application {

    @POST
    public String post(){
        return "api sever by post method";
    }

    @GET
    public String get(){
        return "api sever by get method";
    }

    @OPTIONS
    public String options(){
        return "api sever by options method";
    }

    @PUT
    public String put(){
        return "api sever by put method";
    }

    @DELETE
    public String delete(){
        return "api sever by delete method";
    }

    @HEAD
    public String head(){
        return "api sever by head method";
    }
}
